/*
 * Copyright (C) 2011-2012 Adam Gregoire <bsdunx@gmail.com>
 * Copyright (C) 2011-2012 Jeff Hubbard <lord2800@gmail.com>
 *
 * This file is part of the ScriptKit scripting engine library.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

#ifndef __EXPORTS_HPP__
#define __EXPORTS_HPP__ 1

#if defined _WIN32 || defined __CYGWIN__
# define SCRIPTKIT_HELPER_IMPORT __declspec(dllimport)
# define SCRIPTKIT_HELPER_EXPORT __declspec(dllexport)
# define SCRIPTKIT_HELPER_LOCAL
#else
# if __GNUC__ >= 4
#  define SCRIPTKIT_HELPER_IMPORT __attribute__ ((visibility ("default")))
#  define SCRIPTKIT_HELPER_EXPORT __attribute__ ((visibility ("default")))
#  define SCRIPTKIT_HELPER_LOCAL  __attribute__ ((visibility ("hidden")))
# else
#  define SCRIPTKIT_HELPER_IMPORT
#  define SCRIPTKIT_HELPER_EXPORT
#  define SCRIPTKIT_HELPER_LOCAL
# endif
#endif

#ifdef SCRIPTKIT_DLL
# ifdef SCRIPTKIT_EXPORTS
#  define SCRIPTKIT_API SCRIPTKIT_HELPER_EXPORT
# else
#  define SCRIPTKIT_API SCRIPTKIT_HELPER_IMPORT
# endif
# define SCRIPTKIT_LOCAL SCRIPTKIT_HELPER_LOCAL
#else // !SCRIPTKIT_DLL static lib
# define SCRIPTKIT_API
# define SCRIPTKIT_LOCAL
#endif // SCRIPTKIT_DLL

#endif /* __EXPORTS_HPP__ */
